<!DOCTYPE html>
<html>
<head>
    <title>个人中心</title>
    {% include 'admin/common/header.html' %}
    <style>
        .layui-form-item {
            margin-top: 2px !important;
            margin-bottom: 0px !important;
        }
    </style>
</head>
<body class="pear-container">
<div class="layui-row layui-col-space10">
    {# 右侧栏 #}
    <div style="width: 100%" class="layui-col-md9">
        {# 个人信息卡片 #}
        <div class="layui-card">
            <div class="layui-card-header">日常作训表</div>
            <div class="layui-card-body">
                <div class="layui-tab layui-tab-brief">
                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show">
                            <form class="layui-form">
                                <label >&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;晨练
                                        &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;上午1
                                        &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;上午2
                                        &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;下午1
                                        &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;下午2
                                        &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;晚练
                                        &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;组织人</label>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">星期一</label>
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Mon.mor_exercise}}" type="text" name="mor_exercise1"
                                           lay-verify="title"
                                           autocomplete="off" placeholder="{{Mon.mor_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Mon.morning_1}}" type="text" name="morning_11"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Mon.morning_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Mon.morning_2}}" type="text" name="morning_21"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Mon.morning_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Mon.afternoon_1}}" type="text" name="afternoon_11"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Mon.afternoon_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Mon.afternoon_2}}" type="text" name="afternoon_21"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Mon.afternoon_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Mon.evening_exercise}}" type="text" name="evening_exercise1"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Mon.evening_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Mon.charger}}" type="text" name="charger1"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Mon.charger}}" class="layui-input">
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">星期二</label>
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Tue.mor_exercise}}" type="text" name="mor_exercise2"
                                           lay-verify="title"
                                           autocomplete="off" placeholder="{{Tue.mor_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Tue.morning_1}}" type="text" name="morning_12"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Tue.morning_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Tue.morning_2}}" type="text" name="morning_22"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Tue.morning_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Tue.afternoon_1}}" type="text" name="afternoon_12"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Tue.afternoon_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Tue.afternoon_2}}" type="text" name="afternoon_22"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Tue.afternoon_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Tue.evening_exercise}}" type="text" name="evening_exercise2"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Tue.evening_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Tue.charger}}" type="text" name="charger2"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Tue.charger}}" class="layui-input">
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">星期三</label>
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Wed.mor_exercise}}" type="text" name="mor_exercise3"
                                           lay-verify="title"
                                           autocomplete="off" placeholder="{{Wed.mor_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Wed.morning_1}}" type="text" name="morning_13"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Wed.morning_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Wed.morning_2}}" type="text" name="morning_23"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Wed.morning_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Wed.afternoon_1}}" type="text" name="afternoon_13"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Wed.afternoon_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Wed.afternoon_2}}" type="text" name="afternoon_23"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Wed.afternoon_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Wed.evening_exercise}}" type="text" name="evening_exercise3"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Wed.evening_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Wed.charger}}" type="text" name="charger3"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Wed.charger}}" class="layui-input">
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">星期四</label>
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Thu.mor_exercise}}" type="text" name="mor_exercise4"
                                           lay-verify="title"
                                           autocomplete="off" placeholder="{{Thu.mor_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Thu.morning_1}}" type="text" name="morning_14"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Thu.morning_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Thu.morning_2}}" type="text" name="morning_24"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Thu.morning_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Thu.afternoon_1}}" type="text" name="afternoon_14"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Thu.afternoon_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Thu.afternoon_2}}" type="text" name="afternoon_24"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Thu.afternoon_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Thu.evening_exercise}}" type="text" name="evening_exercise4"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Thu.evening_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Thu.charger}}" type="text" name="charger4"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Thu.charger}}" class="layui-input">
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">星期五</label>
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Fri.mor_exercise}}" type="text" name="mor_exercise5"
                                           lay-verify="title"
                                           autocomplete="off" placeholder="{{Fri.mor_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Fri.morning_1}}" type="text" name="morning_15"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Fri.morning_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Fri.morning_2}}" type="text" name="morning_25"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Fri.morning_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Fri.afternoon_1}}" type="text" name="afternoon_15"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Fri.afternoon_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Fri.afternoon_2}}" type="text" name="afternoon_25"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Fri.afternoon_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Fri.evening_exercise}}" type="text" name="evening_exercise5"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Fri.evening_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Fri.charger}}" type="text" name="charger5"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Fri.charger}}" class="layui-input">
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">星期六</label>
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sat.mor_exercise}}" type="text" name="mor_exercise6"
                                           lay-verify="title"
                                           autocomplete="off" placeholder="{{Sat.mor_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sat.morning_1}}" type="text" name="morning_16"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sat.morning_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sat.morning_2}}" type="text" name="morning_26"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sat.morning_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sat.afternoon_1}}" type="text" name="afternoon_16"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sat.afternoon_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sat.afternoon_2}}" type="text" name="afternoon_26"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sat.afternoon_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sat.evening_exercise}}" type="text" name="evening_exercise6"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sat.evening_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sat.charger}}" type="text" name="charger6"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sat.charger}}" class="layui-input">
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">星期天</label>
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sun.mor_exercise}}" type="text" name="mor_exercise7"
                                           lay-verify="title"
                                           autocomplete="off" placeholder="{{Sun.mor_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sun.morning_1}}" type="text" name="morning_17"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sun.morning_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sun.morning_2}}" type="text" name="morning_27"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sun.morning_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sun.afternoon_1}}" type="text" name="afternoon_17"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sun.afternoon_1}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sun.afternoon_2}}" type="text" name="afternoon_27"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sun.afternoon_2}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sun.evening_exercise}}" type="text" name="evening_exercise7"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sun.evening_exercise}}" class="layui-input">
                                    <input style="width: 12%;height:70px;display:inline-block;text-align:center" value="{{Sun.charger}}" type="text" name="charger7"
                                               lay-verify="title"
                                               autocomplete="off" placeholder="{{Sun.charger}}" class="layui-input">
                                </div>
                                <div style="margin-left:40%;margin-top:12px !important"class="layui-form-item">
                                    <div class="layui-input-block">
                                        <button class="layui-btn layui-btn-lg layui-btn-normal" lay-submit
                                                lay-filter="timetable-update">课程表更新
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </div>
    </div>
</div>
{% include 'admin/common/footer.html' %}
<script>
  layui.use(['element', 'jquery', 'layer', 'form'], function () {
    let $ = layui.jquery
    let layer = layui.layer
    let form = layui.form

    // 表单提交更改课表信息数据
    form.on('submit(timetable-update)', function (data) {
      $.ajax({
        url: '/admin/daliy/timetable/updateInfo',
        data: JSON.stringify(data.field),
        dataType: 'json',
        contentType: 'application/json',
        type: 'put',
        success: function (result) {
          if (result.success) {
            layer.msg('修改成功', { icon: 1, time: 1000 })
          } else {
            layer.msg('修改失败', { icon: 2, time: 1000 })
          }
        }
      })
      return false
    })
  })
</script>
</body>
</html>
